home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr11 / hp4frm10.zip / HP4FORMS.BAT < prev    next >
DOS Batch File  |  1995-03-04  |  1KB  |  44 lines

  1. rem This batch file, HP4FORMS.BAT, is used to temporarily switch
  2. rem printer codes for the HP LaserJet 4 while using PAF to print
  3. rem the custom blank genealogy forms for the HP/LJ 4
  4.  
  5. rem Make sure the HP/LJ 4 print files exist - if they don't, it means
  6. rem configuration is not standard and this batch file won't work
  7.  
  8. IF NOT EXIST HP4-1.PRN   GOTO FILEMISS
  9. IF NOT EXIST HP4-317.PRN GOTO FILEMISS
  10.  
  11. rem If backup copies of the original print files don't exist - make a copy
  12. rem If they already exist, skip making the copy
  13.  
  14. IF EXIST HP4-1.OPC   GOTO SkipCpy1
  15.  
  16. COPY HP4-1.PRN   HP4-1.OPC
  17.  
  18. :SkipCpy1
  19.  
  20. IF EXIST HP4-317.OPC GOTO SkipCpy3
  21.  
  22. COPY HP4-317.PRN HP4-317.OPC
  23.  
  24. :SkipCpy3
  25.  
  26. rem Replace the original print codes with custom codes for printing forms
  27.  
  28. COPY HP4FRM-1.PRN HP4-1.PRN
  29. COPY HP4FRM-3.PRN HP4-317.PRN
  30.  
  31. rem Run PAF's Family Records program to print the forms
  32.  
  33. FR.EXE
  34.  
  35. rem Restore the saved copies of the original print codes
  36.  
  37. COPY HP4-1.OPC   HP4-1.PRN
  38. COPY HP4-317.OPC HP4-317.PRN
  39. GOTO DONE
  40.  
  41. FILEMISS:
  42. echo I can't find the HP/LJ4 printer code files so this batch file won't work
  43.  
  44. DONE: